package edu.hcmus.sow.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import edu.hcmus.sow.domain.File;

/**
 * DAO to manage File entities.
 * 
 */
public interface FileDAO extends GenericDAO<File, Integer> {

   public File findByName(String fileName) throws DataAccessException;

   public List<File> getByFolderID(Integer folderID) throws DataAccessException;

   public boolean isExist(Integer folderID, String name) throws DataAccessException;
}